import request from '../../utils/request';
import {download} from '../../utils/commons'

export async function getTaxStatus({cstId,page,orderNo,declaratNo,drawbackFianceStatus,presentStatus,transferAccountStatus,exportStart,exportEnd}) {
    return request(apiPath.mc+'/api/report/taxinv',{
        method:'get',
        data:{
            cstId:cstId,
            orderNo:orderNo,
            declaratNo:declaratNo,
            drawbackFianceStatus:drawbackFianceStatus,
            presentStatus:presentStatus,
            transferAccountStatus:transferAccountStatus,
            exportStart:exportStart,
            exportEnd:exportEnd,
            page:page.page,
            size:page.size,
        }
    });
}
export async function exportTaxStatus({cstId,orderNo,declaratNo,drawbackFianceStatus,presentStatus,transferAccountStatus,exportStart,exportEnd}) {
    return download(apiPath.mc+"/api/report/taxinv/export",{
            cstId:cstId,
            orderNo:orderNo,
            declaratNo:declaratNo,
            drawbackFianceStatus:drawbackFianceStatus,
            presentStatus:presentStatus,
            transferAccountStatus:transferAccountStatus,
            exportStart:exportStart,
            exportEnd:exportEnd,
    });
}
